const mongoose = require('../db.js');

let deviceShe = new mongoose.Schema({
    deviceName: {
        type: String,
        index: { unique: true }
    },
    socketId: {
        type: String,
        index: true
    },
    device_width: Number,
    device_height: Number,
    device_UUID: String,
    taskStatus: {
        type: String,
        default: "空闲",
        index: true
    },
    deviceMsg: {
        type: String,
        default: "设备上线了"
    },
    taskName: {
        type: String,
        default: "无任务"
    },
    groupId: {
        type: mongoose.SchemaTypes.ObjectId,
        ref: "groupMod"
    },
    updateTime: {
        type: String
    },

})



module.exports = deviceShe;